package com.coolingme.general;

/**
 * 抽象中介者
 *
 * @author wangyue
 * @date 2020-09-26 21:22
 */
public abstract class AbstractMediator {

    protected ConcreteColleagueA colleagueA;

    protected ConcreteColleagueB colleagueB;

    public void setColleagueA(ConcreteColleagueA colleagueA) {
        this.colleagueA = colleagueA;
    }

    public void setColleagueB(ConcreteColleagueB colleagueB) {
        this.colleagueB = colleagueB;
    }

    /**
     * 中介者的业务逻辑
     */
    public abstract void transferA();

    public abstract void transferB();

}
